Same as the previous commit, but for non-touchpad scrolls.
Related: https://gitlab.gnome.org/GNOME/mutter/-/issues/4129
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3725>
if (this._workspaceAnimation.canHandleScrollEvent(event))
return Clutter.EVENT_PROPAGATE;
- if ((event.get_state() & global.display.compositor_modifiers) === 0)
+ const {compositorModifiers} = global.display;
+ if ((event.get_state() & compositorModifiers) !== compositorModifiers)
return Clutter.EVENT_PROPAGATE;
return this.handleWorkspaceScroll(event);